import React from 'react';
interface IProps {
  children: React.ReactNode;
  header?: React.ReactNode;
}
export default  class Panel extends React.Component<IProps, {}>  {
  public render() {
    const { header, children } = this.props;
    return (
      <div className="panel panel-default">
        <div className="panel-header">
          {header}
        </div>
        <div className="panel-body">
          {children}
        </div>
      </div>
    );
  }
}
